<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="zhcms.admin.*" %> 
<%
request.setCharacterEncoding("utf-8");
GyUserLoginValidate gycheck=new GyUserLoginValidate();
int ischeck=gycheck.UserLoginValidate(request, response);
if(ischeck==0)
{
		try{
		out.println("<script language='javascript'>alert('对不起！，您还没有登陆');location.href=\"index.jsp\";</script>");
		}
		catch(Exception e){
			e.printStackTrace();
		}
}
//
%>
<%
	long timePageStart = System.currentTimeMillis();
	EnvServlet env = new EnvServlet();
	env.setHashtable();
	String action = new String(" ");
	String act = new String("action");
	if (request.getQueryString() != null
			&& request.getQueryString().indexOf(act, 0) >= 0) {
		action = request.getParameter(act);
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>系统管理中心</title>
<meta http-equiv="Content-Type content=text/html; charset=utf-8">
<LINK href="css/Admin_Style.css" type="text/css" rel="stylesheet">
<BODY leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
	<table cellpadding="0" cellspacing="0" border="0" width="98%"
		class="tableBorder" align=center>
		<tr>
			<th class="tableHeaderText" colspan="4" height=22>系统信息</th>
		<tr>
		<tr height="22">
			<td  class="forumRow" width="130">&nbsp;服务器名</td>
			<td  class="forumRow" colspan="3" height="22">&nbsp;<%=request.getServerName()%>(<%=request.getRemoteAddr()%>)</td>
		</tr>
		<tr height="22">
			<td class="forumRow">&nbsp;服务器操作系统</td>
			<td  class="forumRow" colspan="3">&nbsp;<%=env.queryHashtable("os.name")%> <%=env.queryHashtable("os.version")%>
				<%=env.queryHashtable("sun.os.patch.level")%></td>
		</tr>
		<tr height="22">
			<td class="forumRow">&nbsp;服务器操作系统类型</td>
			<td class="forumRow">&nbsp;<%=env.queryHashtable("os.arch")%></td>
			<td class="forumRow">&nbsp;服务器操作系统模式</td>
			<td class="forumRow">&nbsp;<%=env.queryHashtable("sun.arch.data.model")%>位</td>
		</tr>
		<tr height="22">
			<td class="forumRow">&nbsp;服务器所在地区</td>
			<td class="forumRow">&nbsp;<%=env.queryHashtable("user.country")%></td>
			<td class="forumRow">&nbsp;服务器语言</td>
			<td class="forumRow">&nbsp;<%=env.queryHashtable("user.language")%></td>
		</tr>
		<tr height="22">
			<td class="forumRow">&nbsp;服务器时区</td>
			<td class="forumRow">&nbsp;<%=env.queryHashtable("user.timezone")%></td>
			<td class="forumRow">&nbsp;服务器时间</td>
			<td class="forumRow">&nbsp;<%=new java.util.Date()%></td>
		</tr>
		<tr height="22">
			<td class="forumRow">&nbsp;服务器解译引擎</td>
			<td  class="forumRow" width="170">&nbsp;<%=getServletContext().getServerInfo()%></td>
			<td  class="forumRow" width="130">&nbsp;服务器端口</td>
			<td  class="forumRow" width="170">&nbsp;<%=request.getServerPort()%></td>
		</tr>
		<tr height="22">
			<td  class="forumRow" height="22">&nbsp;当前用户</td>
			<td  class="forumRow" height="22" colspan="3">&nbsp;<%=env.queryHashtable("user.name")%></td>
		</tr>
		<tr height="22">
			<td class="forumRow">&nbsp;用户目录</td>
			<td  class="forumRow" colspan="3">&nbsp;<%=env.queryHashtable("user.dir")%></td>
		</tr>
		<tr height="22">
			<td  class="forumRow" align=left>&nbsp;本文件实际路径</td>
			<td  class="forumRow" height="8" colspan="3">&nbsp;<%=request.getRealPath(request.getServletPath())%></td>
		</tr>
	</table>
	<p></p>
	<table cellpadding="0" cellspacing="0" border="0" width="98%" class="tableBorder" align=center>
		<tr>
			<td class="forumRow" height="22" align="center"><strong>JAVA相关参数</strong>
		</td>
		</tr>
		<tr>
			<td>
				<table border=0 width=100% cellspacing=1 cellpadding=3>
					<tr height="22">
						<td  class="forumRow" width="20%">&nbsp;名称</td>
						<td  class="forumRow" width="50%" height="22">&nbsp;英文名称</td>
						<td  class="forumRow" width="30%" height="22">&nbsp;版本</td>
					</tr>
					<tr height="22">
						<td  class="forumRow">&nbsp;JAVA运行环境名称</td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.runtime.name")%></td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.runtime.version")%></td>
					</tr>
					<tr height="22">
						<td  class="forumRow">&nbsp;JAVA运行环境说明书名称</td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.specification.name")%></td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.specification.version")%></td>
					</tr>
					<tr height="22">
						<td  class="forumRow">&nbsp;JAVA虚拟机名称</td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.vm.name")%></td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.vm.version")%></td>
					</tr>
					<tr height="22">
						<td  class="forumRow">&nbsp;JAVA虚拟机说明书名称</td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.vm.specification.name")%></td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.vm.specification.version")%></td>
					</tr>
					<%
						float fFreeMemory = (float) Runtime.getRuntime().freeMemory();
						float fTotalMemory = (float) Runtime.getRuntime().totalMemory();
						float fPercent = fFreeMemory / fTotalMemory * 100;
					%>
					<tr height="22">
						<td  class="forumRow" height="22">&nbsp;JAVA虚拟机剩余内存：</td>
						<td  class="forumRow" height="22" colspan="2">&nbsp;<%=fFreeMemory / 1024 / 1024%>M
						</td>
					</tr>
					<tr height="22">
						<td  class="forumRow" height="22">&nbsp;JAVA虚拟机分配内存</td>
						<td  class="forumRow" height="22" colspan="2">&nbsp;<%=fTotalMemory / 1024 / 1024%>M</td>
					</tr>
				</table>
				<table border=0 width=100% cellspacing=1 cellpadding=3>
					<tr height="22">
						<td  class="forumRow">&nbsp;参数名称</td>
						<td  class="forumRow" height="22">&nbsp;参数路径</td>
					</tr>
					<tr height="22">
						<td  class="forumRow">&nbsp;java.class.path</td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.class.path").replaceAll(
					env.queryHashtable("path.separator"),
					env.queryHashtable("path.separator") + "<br>&nbsp;")%>
						</td>
					</tr>
					<tr height="22">
						<td  class="forumRow">&nbsp;java.home</td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.home")%></td>
					</tr>
					<tr height="22">
						<td  class="forumRow">&nbsp;java.endorsed.dirs</td>
						<td  class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.endorsed.dirs")%></td>
					</tr>
					<tr height="22">
						<td class="forumRow">&nbsp;java.library.path</td>
						<td class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.library.path").replaceAll(
					env.queryHashtable("path.separator"),
					env.queryHashtable("path.separator") + "<br>&nbsp;")%>
						</td>
					</tr>
					<tr height="22">
						<td class="forumRow">&nbsp;java.io.tmpdir</td>
						<td class="forumRow" height="22">&nbsp;<%=env.queryHashtable("java.io.tmpdir")%></td>
					</tr>
				</table></td>
		</tr>
	</table>
	<p></p>

	<table cellpadding="0" cellspacing="0" border="0" width="98%" class="tableBorder" align=center>
		<tr>
			<th class="tableHeaderText" colspan=2 height=25>系统信息</th>
		<tr>
		<tr>
			<td  class="forumRow" width="20%" class="forumRow" height=23>&nbsp;&nbsp;产品开发</td>
			<td  class="forumRow" width="80%" class="forumRow">&nbsp;&nbsp;格格工作室</td>
		</tr>
		<tr>
			<td  class="forumRow" width="20%" class="forumRow" height=23>&nbsp;&nbsp;产品负责</td>
			<td  class="forumRow" width="80%" class="forumRow">&nbsp;&nbsp;<font color=blue>guoyong</font>&nbsp;&nbsp;QQ：835197167&nbsp;&nbsp;E-Mail：<a
				href="guoyong_1979@163.com" target=_blank>guoyong_1979@163.com</a><br>
			</td>
		</tr>
		<tr>
			<td  class="forumRow" width="20%" class="forumRow" height=23>&nbsp;&nbsp;关于我们</td>
			<td  class="forumRow" width="80%" class="forumRow">&nbsp;&nbsp;</td>
		</tr>
	</table>
	<table align=center>
		<tr>
			<td><BR>Copyright (c) 2007-2008 <a
				href="http://www.guogege.net" target=_blank><font
					face=Verdana, Arial, Helvetica, sans-serif><b>www.guogege<font
							color=#CC0000>.net</font>
					</b>
				</font>
			</a>. All Rights Reserved .<BR>
			<BR>
			<BR>
			</td>
		</tr>
	</table>
</body>
</html>